package edu.sctu.zhangwang.month201506.day20150628.list_hash;


import java.io.*;

/**
 * Created by Administrator on 2015/6/28.
 */
public class CreatFile {
    public void creatfile() {
        int count = 0;
        int a= 0;
        byte[] bytes = new byte[2048];
        File file = new File("D://Json/Json.txt");
        try {
            FileInputStream inputStream = new FileInputStream(file);
            try {
                while ((count=inputStream.read(bytes))!=-1){
                    a += count;
                    String x = new String(bytes);
                    System.out.println(x);
                }
                inputStream.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }
    }

    public static void main(String[] args) {
        CreatFile creatFile = new CreatFile();
        creatFile.creatfile();
    }
}
